import request from '@/utils/request'

// 查询制作步骤列表
export function listSteps(query) {
  return request({
    url: '/recipes/steps/list',
    method: 'get',
    params: query
  })
}

// 查询制作步骤详细
export function getSteps(id) {
  return request({
    url: '/recipes/steps/' + id,
    method: 'get'
  })
}

// 新增制作步骤
export function addSteps(data) {
  return request({
    url: '/recipes/steps',
    method: 'post',
    data: data
  })
}

// 修改制作步骤
export function updateSteps(data) {
  return request({
    url: '/recipes/steps',
    method: 'put',
    data: data
  })
}

// 删除制作步骤
export function delSteps(id) {
  return request({
    url: '/recipes/steps/' + id,
    method: 'delete'
  })
}
